package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.annotation.Transient;

/**
 * 订单详情对象 order_detail
 * 
 * @author liwenjing
 * @date 2021-05-15
 */
@Configuration
public class OrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键标识 */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderId;

    /** 客户编码 */
    @Excel(name = "客户编码")
    private String customerCode;

    /** 律师编码 */
    @Excel(name = "律师编码")
    private String lawyerCode;

    @Transient
    public String getLawyerName() {
        return lawyerName;
    }

    public void setLawyerName(String lawyerName) {
        this.lawyerName = lawyerName;
    }

    @Excel(name = "律师名称")
    private String lawyerName;


    /** 金额 */
    @Excel(name = "金额")
    private Long amount;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String status;

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    private String delFlag;

    public Long getScore() {
        return score;
    }

    public void setScore(Long score) {
        this.score = score;
    }

    public String getAppraise() {
        return appraise;
    }

    public void setAppraise(String appraise) {
        this.appraise = appraise;
    }

    @Excel(name = "评分")
    private Long score;

    @Excel(name = "评价")
    private String appraise;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "服务日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date serviceDate;

    @Excel(name = "服务时间")
    private String serviceTime;

    @Excel(name ="称呼")
    private String name;

    @Excel(name = "联系电话")
    private String customerTel;

    public Date getServiceDate() {
        return serviceDate;
    }

    public void setServiceDate(Date serviceDate) {
        this.serviceDate = serviceDate;
    }

    public String getServiceTime() {
        return serviceTime;
    }

    public void setServiceTime(String serviceTime) {
        this.serviceTime = serviceTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCustomerTel() {
        return customerTel;
    }

    public void setCustomerTel(String customerTel) {
        this.customerTel = customerTel;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setCustomerCode(String customerCode) 
    {
        this.customerCode = customerCode;
    }

    public String getCustomerCode() 
    {
        return customerCode;
    }
    public void setLawyerCode(String lawyerCode) 
    {
        this.lawyerCode = lawyerCode;
    }

    public String getLawyerCode() 
    {
        return lawyerCode;
    }

    public void setAmount(Long amount) 
    {
        this.amount = amount;
    }

    public Long getAmount() 
    {
        return amount;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("customerCode", getCustomerCode())
            .append("lawyerCode", getLawyerCode())
            .append("createTime", getCreateTime())
            .append("amount", getAmount())
            .append("status", getStatus())
                .append("score", getScore())
                .append("appraise", getAppraise())
            .toString();
    }
}
